home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Mailcheck Source / drvr src / mmc_config.h next >
Text File  |  1990-08-01  |  1KB  |  65 lines

  1. /*
  2.  * configuration constants
  3.  */
  4.  
  5. /*
  6.  * If the connection closes or can't be open because of an error
  7.  * retry this often
  8.  */
  9. #define RESTART_ON_ERROR_TIME (5*MINS)
  10.  
  11. /*
  12.  * consider all errors transient and don't tell the user
  13.  * till this much time has elapsed
  14.  */
  15. #define ERROR_ANNOUNCE_TIME (15*MINS)
  16.  
  17. /*
  18.  * ask the server this often (default, server can set new minimum)
  19.  */
  20. #define POLL_TIME (5*MINS)
  21.  
  22. /*
  23.  * Retransmit unaswered polls this often at first
  24.  */
  25. #define RETRANS_MIN_TIME (1*MINS)
  26.  
  27. /*
  28.  * after this many fast RETRANS_MIN_TIME retransmits, go back to
  29.  * using POLL_TIME.  Also queue up a timeout error to happen
  30.  * in the usual ERROR_ANOUNCE_TIME seconds.
  31.  */
  32. #define NUM_FAST_RETRIES (4)
  33.  
  34. /*
  35.  * Sleep this long when user wacks the snooze button
  36.  */
  37. #define SNOOZE_TIME (45*MINS)
  38.  
  39. #ifndef DEBUG
  40. #define ABS_MIN_POLL (MINS*5)
  41. #define ABS_MAX_POLL (60*MINS)
  42. #else
  43. #define ABS_MIN_POLL (30*SECS)
  44. #define ABS_MAX_POLL (30*SECS)
  45. #endif
  46.  
  47. /*
  48.  * don't load sounds if it would leave less than this much space
  49.  * in system heap
  50.  */
  51. #define SYS_RESERVE (16000)
  52.  
  53. #define MMW_port (902)
  54.  
  55. /*
  56.  * server host numbers
  57.  */
  58. #define HNUM0 MK_HOST(128L,2L,15L,253L)
  59. #define HNUM1 MK_HOST(128L,2L,11L,77L)
  60.  
  61. /*
  62.  * server host if debugging
  63.  */
  64. #define deb_HNUM MK_HOST(128L,2L,35L,1L)
  65.